/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package eikotrade.javafx.scenes;

import eikotrade.javafx.controlls.GoToButton;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.paint.Paint;
import javafx.stage.Stage;

/**
 *
 * @author michel
 */
public class StartScene extends EikoTradeScene{
    
    
    
    public StartScene(Group parent, Stage primaryStage, Scene caller) {
        super(parent, primaryStage, caller);
        INIT();
    }

    public StartScene(Group parent, Paint paint, Stage primaryStage, Scene caller) {
        super(parent, paint, primaryStage, caller);
        INIT();
    }

    public StartScene(Group parent, double d, double d1, Stage primaryStage, Scene caller) {
        super(parent, d, d1, primaryStage, caller);
        INIT();
    }

    public StartScene(Group parent, double d, double d1, Paint paint, Stage primaryStage, Scene caller) {
        super(parent, d, d1, paint, primaryStage, caller);
        INIT();
    }

    public StartScene(Group parent, double d, double d1, boolean bln, Stage primaryStage, Scene caller) {
        super(parent, d, d1, bln, primaryStage, caller);
        INIT();
    }
    
    private void INIT(){
        ((Group)super.getRoot()).getChildren().add(new GoToButton("Next", getHelloWorldScene(), getPrimaryStage()));
    }
    
    private Scene getHelloWorldScene(){
        HelloWorldScene scene = new HelloWorldScene(new Group(), getFill(),getPrimaryStage(),this);
        return scene;
    }
    
    private Group getGroup(){
        return (Group)getRoot();
    }
}
